package com.example.action;

import java.util.ArrayList;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;

public class ComboBoxAction extends ActionSupport {

	private List<String> months;
	private String yourMonth;
	private List<String> years;
	private String yourYear;
	private List<String> dates;
	private String yourDate;

	/*------------Month---------*/

	public List<String> getMonths() {
		return months;
	}

	public void setMonths(List<String> months) {
		this.months = months;
	}

	public String getYourMonth() {
		return yourMonth;
	}

	public void setYourMonth(String yourMonth) {
		this.yourMonth = yourMonth;
	}/*------------Date---------*/

	public List<String> getDates() {
		return dates;
	}

	public void setDates(List<String> dates) {
		this.dates = dates;
	}

	public String getYourDate() {
		return yourDate;
	}

	public void setYourDate(String yourDate) {
		this.yourDate = yourDate;
	}/*------------Year---------*/

	public List<String> getYears() {
		return years;
	}

	public void setYears(List<String> years) {
		this.years = years;
	}

	public String getYourYear() {
		return yourYear;
	}

	public void setYourYear(String yourYear) {
		this.yourYear = yourYear;
	}

	public ComboBoxAction() {
		dates = new ArrayList<String>();
		for (int i = 1; i <= 31; i++) {
			dates.add(" " + i);
		}

		months = new ArrayList<String>();
		months.add("Jan");
		months.add("Feb");
		months.add("Mar");
		months.add("Apr");
		months.add("May");
		months.add("Jun");
		months.add("Jul");
		months.add("Aug");
		months.add("Sep");
		months.add("Oct");
		months.add("Nov");
		months.add("Dec");
		years = new ArrayList<String>();

		for (int i = 2011; i >= 1950; i--) {
			years.add("" + i);
		}
	}

	public String execute() {
		return SUCCESS;
	}

	public String display() {
		return NONE;
	}

}
